package com.example.securitytest.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("item")
public class Item {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private Double price;

    private Integer quantity;

    // 这里不再需要手动定义 setId 和 getId 方法
}
